package com.jsu.springboot_crop.dao;

import com.jsu.springboot_crop.entity.PurchaseDetail;
import com.jsu.springboot_crop.entity.ToEcharts;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author Humura
 * @Date 2023/8/26 14:18
 * @Version 1.0
 */
@Mapper
public interface PurchaseDetailDao {
    int insertSelective(PurchaseDetail record);

    List<PurchaseDetail> selectByPurchaseId(@Param("purchaseId")Integer purchaseId);

    //前5销售额
    List<ToEcharts> fivesalesvolumee();

    //前5销量
    List<ToEcharts> fivesalesvolumel();
}
